import request from "@/utils/request";
import { CategoryList } from "@/types/category";

/**
 * 获取文章分类
 * @returns
 */
export const queryCategoryList = (): ResponseResult<CategoryList> =>
  request({
    url: `${process.env.VUE_APP_BASE_API}/category/categoryList`,
    method: "GET",
  });
